package com.xdtech.parking.model;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @author max.zheng
 * @create 2015-06-18 14:30:33
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="PARKING_DEVICE")
public class ParkingDevice extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="AREA_CODE")
	private String areaCode;
	/**
	 * 唯一，由区域编码+设备编码组成   areaCode+下划线+deviceCode
	 */
	@Column(name="UKEY",unique=true)
	private String ukey;
	@Column(name="GWID")
	private String gwid;
	@Column(name="DEVICE_CODE")
	private String deviceCode;
	@Column(name="STATUS")
	private Integer status;
	@Column(name="SET_VAL")
	private String setVal;
	@Column(name="ERROR")
	private String error;
	@Column(name="TAG")
	private String tag;
	@Column(name="KWH")
	private Integer kwh;
	@Column(name="HAS_CAR")
	private Integer hasCar;
	@Column(name="BILLING")
	private String billing;
	@Column(name="BILLING_cost")
	private Integer cost;

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	public String getAreaCode() {
		return areaCode;
	}
	public void setGwid(String gwid) {
		this.gwid = gwid;
	}
	public String getGwid() {
		return gwid;
	}
	public void setDeviceCode(String deviceCode) {
		this.deviceCode = deviceCode;
	}
	public String getDeviceCode() {
		return deviceCode;
	}
	
	
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public void setError(String error) {
		this.error = error;
	}
	public String getError() {
		return error;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public String getTag() {
		return tag;
	}
	public void setKwh(Integer kwh) {
		this.kwh = kwh;
	}
	public Integer getKwh() {
		return kwh;
	}
	public String getSetVal() {
		return setVal;
	}
	public void setSetVal(String setVal) {
		this.setVal = setVal;
	}
	public Integer getHasCar() {
		return hasCar;
	}
	public void setHasCar(Integer hasCar) {
		this.hasCar = hasCar;
	}
	public String getUkey() {
		return ukey;
	}
	public void setUkey(String ukey) {
		this.ukey = ukey;
	}
	public String getBilling() {
		return billing;
	}
	public void setBilling(String billing) {
		this.billing = billing;
	}
	public Integer getCost() {
		return cost;
	}
	public void setCost(Integer cost) {
		this.cost = cost;
	}
	
}
